package com.cyy.factory_pattern;

import com.cyy.factory_pattern.eazy.Ss;
import com.cyy.factory_pattern.eazy.Zz;

/**
 * 简单工厂模式
 */
public class EasyDemo {
    public static void main(String[] args) {
        Zz zz = new Zz();
        Ss aa = zz.abc("小明");
        aa.Show();
        Ss bb = zz.abc("小红");
        bb.Show();
        Ss cc = zz.abc("小兰");
        cc.Show();
        Ss dd =  zz.abc("啥也不是");
    }
}
